﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %> 
<%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="PersonalAwardPublicUserControl.ascx.cs" Inherits="JM.JCY.SharePointComponent.PersonalHome.PersonalAwardPublic.PersonalAwardPublicUserControl" %>

<script type="text/javascript">

    $(document).ready(function () {
        $("#tdSurveyToggle1").click(function () {
            var div = document.getElementById("divToggleSurvey");
            if (div.style.display == "") {
                div.style.display = "none";
                $("#imgToggleSurvey").attr("src", "/_layouts/JM.JCY.Resource/images/toggle_expand.png");

            }
            else {
                div.style.display = "";
                $("#imgToggleSurvey").attr("src", "/_layouts/JM.JCY.Resource/images/toggle_collapse.png");
            }
        });

        $("#tdSurveyToggle2").click(function () {
            var div = document.getElementById("divToggleSurvey");
            if (div.style.display == "") {
                div.style.display = "none";
                $("#imgToggleSurvey").attr("src", "/_layouts/JM.JCY.Resource/images/toggle_expand.png");

            }
            else {
                div.style.display = "";
                $("#imgToggleSurvey").attr("src", "/_layouts/JM.JCY.Resource/images/toggle_collapse.png");
            }
        });
    });
   

</script>
<div>
    <table class="main" width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
            <td>
                <table class="webpart" width="450" cellpadding="0" cellspacing="0">
                    <tr>
                             <th align="left" id="tdSurveyToggle1" class="title" width="50%" style="cursor: pointer">
                            <img src="/_layouts/JM.JCY.Resource/images/give_a_star.png" width="24" />
                            个人荣誉
                        </th>
                          <th id="tdSurveyToggle2"class="link" align="right" width="50%" style="cursor: pointer">
                          
                            <img class="toggle" id="imgToggleSurvey" src="/_layouts/JM.JCY.Resource/images/toggle_collapse.png" />
                        </th>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <div id="divToggleSurvey">
                                <table width="100%">
                                   <tr>
                                               <td>
                                                 <asp:DataList ID="dlAward" runat="server" OnItemDataBound= "dlAward_ItemDataBound"
                                                Width="100%">
                                                 <ItemTemplate>
                                                    <hr runat="server" id="hr" />
                                                    <table width="100%" class="profile">
                                                       <tr>
                                                          <td width="30%">
                                                             <b>奖励时间:</b>
                                                          </td>
                                                          <td>
                                                             <asp:Label ID="lbAwardDate" runat="server"></asp:Label>
                                                          </td>
                                                       </tr>
                                                          <tr>
                                                          <td width="30%">
                                                             <b>奖励名称:</b>
                                                          </td>
                                                         
                                                          <td>
                                                              <asp:Label ID="lbAwardName" runat="server"></asp:Label>
                                                          </td>
                                                        </tr>

                                                       <tr>
                                                          <td width="30%">
                                                             <b>授予单位名称:</b>
                                                          </td>
                                                       
                                                          <td width="24%">
                                                             <asp:Label ID="lbAwardPlaceName" runat="server"></asp:Label>
                                                          </td>
                                                      
                                                       </tr>
                                                    </table>
                                                  </ItemTemplate>
                                        </asp:DataList>
                                               </td>
                                            </tr>
                                   
                                </table>
                                
                            </div>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</div>
